<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <title>1基本组件Widget</title>
    <style>
        html, body {
            width: 100%;
            height: 100%;
            padding: 0px;
            margin: 0px;
        }

        #main {
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .item {
            display: inline-block;
            margin: 0.1rem;
            width: 1.6rem;
            height: 2rem;
            background: green;
        }

        .item.fe-focus {
            background: red;
        }
    </style>
    <script>
        var w = document.documentElement.clientWidth / 10;
        document.getElementsByTagName('html')[0].style['font-size'] = w + 'px';
    </script>
</head>
<body>
<div class="i-am-a-switch" fe-role="Scroll" fe-cfg="scroll_dir:v">
    <div class="scroll-list">
        <div class="item" fe-role="Widget"></div>
        <div class="item" fe-role="Widget"></div>
        <div class="item" fe-role="Widget"></div>
    </div>
    <div class="scroll-list">
        <div class="item" fe-role="Widget" fe-cfg="disable:yes"></div>
        <div class="item" fe-role="Widget" fe-cfg="default_focus:yes"></div>
        <div class="item" fe-role="Widget" fe-cfg="scroll_to_end"></div>
    </div>
</div>
<script type="text/javascript" src="../FocusEngine.js" charset="utf-8"></script>
<script>
    var root = FocusEngine.render();
</script>
</body>
</html>
